package com.king.designpatterns.设计模式对比.行为模式对比.命令模式;

/**
 * GZIP接收者
 *
 * @author king
 * @date 2021-06-17 23:02
 */
public class GzipReceiver implements IReceiver{
    @Override
    public boolean compress(String source, String to) {
        System.out.println(source + "-->" + to + " GZIP压缩成功！");
        return true;
    }

    @Override
    public boolean uncompress(String source, String to) {
        System.out.println(source + "-->" + to + " GZIP解压成功！");
        return true;
    }
}
